<?php
class ClassifieldForm extends elggForm {

    public function __construct() {

        $this->setInput('text', array('name' => 'title', 'max_length' => 250, 'required' => true));
        $this->setInput('longtext', array('name' => 'body', 'required' => false), array('has_helper' => true));
        $this->setInput('tags', array('name' => 'caca', 'required' => false), array('has_label' => false));

        parent::__construct();
    }

}
?>

<?php
//---- ON THE VIEW PUT THIS PART OF CODE
//--- AS EXAMPLE ----
$area1 = "";
$form = new ClassifieldForm();

$area2 = $form;
$body = elgg_view_layout('two_column_left_sidebar',$area1, $area2);

echo page_draw(elgg_echo('classifield:add'),$body);
